#include <msp430x16x.h>

/*
  Programme to create a square wave outputted through 
  the I/O port of the MCU
*/

int main() 
{
  P1DIR=255; //Set Port 3 as an output port
  P1OUT=0;

  while (1) //Starts an infinite loop
  {
    P1OUT=255-P1OUT;
  } 

}
